package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Tmp entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tmp", catalog = "imcdbserver")
public class Tmp implements java.io.Serializable {

	// Fields

	private TmpId id;

	// Constructors

	/** default constructor */
	public Tmp() {
	}

	/** full constructor */
	public Tmp(TmpId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "organFriendId", column = @Column(name = "organ_friend_id", nullable = false)),
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "organFriendDate", column = @Column(name = "organ_friend_date", length = 20)),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id", nullable = false)) })
	public TmpId getId() {
		return this.id;
	}

	public void setId(TmpId id) {
		this.id = id;
	}

}